{% load static %}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by TEMPLATED
http://templated.co
Released for free under the Creative Commons Attribution License

Name       : LawnLike 
Description: A two-column, fixed-width design with dark color scheme.
Version    : 1.0
Released   : 20131202

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<!--<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900" rel="stylesheet" />-->
<link href="{% static 'main/css/default.css' %}" rel="stylesheet" type="text/css" media="all" />
<link href="{% static 'main/css/fonts.css' %}" rel="stylesheet" type="text/css" media="all" />

<!--[if IE 6]><link href="default_ie6.css" rel="stylesheet" type="text/css" /><![endif]-->

</head>
<body>
<div id="header-wrapper">
	<div id="header" class="container">
		<div id="logo">
			<h1><span class="fa fa-bolt"></span><a href="#">Todo</a></h1>
		</div>
		<div id="menu">
			<ul>
				<li><a href="/main/index" accesskey="1" title="">Homepage</a></li>
				<li><a href="/main/add" accesskey="2" title="">Add</a></li>
				<li><a href="/main/show" accesskey="3" title="">Show</a></li>
				<li><a href="/main/search" accesskey="4" title="">Search</a></li>
				<li class="current_page_item"><a href="/main/edit" accesskey="5" title="">Edit</a></li>
			</ul>
		</div>
	</div>
</div>
<div id="header-featured">
	<div id="banner-wrapper">
		<div id="banner" class="container">
			<h2>Edit Task</h2>
			<div>
				{% if messages %}
				<ul>
				  {% for message in messages %}
					  <li>{{ message }}</li>
				  {% endfor %}
				</ul>
				{% endif %}
		  
				<form method="POST" action="{% url 'main:edit' %}">
				  {% csrf_token %}
				  <input type="hidden" name="write" value=True>
				  <input required="id" placeholder="id" name="id" value={{ task.id }}>
				  <input type="text" placeholder="title" name="title" value={{ task.title }}>
				  <input type="text" placeholder="description" name="description" value={{ task.description }}>
				  <label>
					<input type="checkbox" name="is_done" {% if task.is_done %} checked {% endif %}>
					Done
				  </label>
		  
				  <input type="submit" value="Edit">
				</form>
			</div>
			<!--<p>This is <strong>LawnLike</strong>, a free, fully standards-compliant CSS template designed by <a href="http://templated.co" rel="nofollow">TEMPLATED</a>. The photos in this template are from <a href="http://fotogrph.com/"> Fotogrph</a>. This free template is released under the <a href="http://templated.co/license">Creative Commons Attribution</a> license, so you're pretty much free to do whatever you want with it (even use it commercially) provided you give us credit for it. Have fun :) </p>
			<a href="#" class="button">Etiam posuere</a>-->
		</div>
	</div>
</div>
<div id="copyright" class="container">
	<p>&copy; Untitled. All rights reserved.</p>
</div>
</body>
</html>
